package top.rainbowecho.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.rainbowecho.article.vo.ArticleLikeVo;
import top.rainbowecho.model.percona.Like;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杨健
 * @since 2020-07-25
 */
public interface ILikeService extends IService<Like> {

    /**
     * 用户点赞
     *
     * @param likeVo
     */
    void insertRecord(ArticleLikeVo likeVo);

    /**
     * 取消对某篇文章的点赞
     *
     * @param likeVo
     * @return 受影响的行数
     */
    int unlikeArticle(ArticleLikeVo likeVo);
}
